<?php
include("./config.php");
include("./utils.php");
?>
<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>快捷键</title>
  <?php include 'scripts-inc.php' ?>
  
  <script>
  // theme-1 列表皮肤
  function url_template(){/*
<tr class="skin{skin}">
  <td>{i}</td>
  <td><strong><a href="show.php?appid={appid}&id={shortcutid}" target="_blank">{shortcut}</a></strong></td>
  <td>{name}
  <div class="text-warning"><strong>{context}</strong></div>
  <div class="text-muted">{des}</div>
  </td>
</tr>
  */}



  function column_template(){/*
<section class="clearfix wrap-cate">
  <div class="row">
    <img class="col-xs-3 col-sm-1 col-md-1 col-lg-1" style='margin-top:24px; max-width:96px;_width:expression(this.width > 96 ? "96px" : this.width);' src="{logo}" />
    <header class="sub-title col-xs-9 col-sm-11 col-md-11 col-lg-11">
      <h3>{head}</h3>
      <p class="text-muted">{des}</p>
    </header>

  </div>
  <table class="table table-striped">{hrefs}</table>
</section>
  */}




  var gAppID=<?php echo getFromMap($_GET, 'appid', 0); ?>;
  gLang='<?php echo getFromMap($_GET, 'lang', 'cn'); ?>';
  $(function(){
    if(!gAppID) gAppID = 2;
    var u='query.php?op=all&appid='+gAppID+'&lang='+gLang;
    $.ajax({url:u,
        //dataType:"json",
        async:true,
        success : function(msg, textStatus) { 
          var pos = msg.indexOf('{');
          if (pos >= 0) {
            msg = msg.substring(pos);
          }
          eval('msg='+msg);
          get_all_callback(gAppID, msg);
          gen_page(gAppID, 0);
          $("#mykeys").show();
        }
    },"text");
  });//end of $(function(){
  </script>
</head>
<body>

<div id="wrapper">
<div id="container">

<div id="nav_data_src">
  <?php include 'navbars-inc.php' ?>
</div>


<div class="clearfix"></div>
</div><!-- end of search-container -->

<div class="clearfix"></div>

<div id="content" class="col-xs-12 col-sm-7 col-md-7 col-lg-7" name="top">
  <div id="result">
    载入中...
  </div>
  
  <div class="clearfix"></div>
  <div class="text-right" id="mykeys" style="display: none">
    <a href="./index.php" class="" >
      <img src="./css/log-orange.png" style='max-width:22px;_width:expression(this.width > 22 ? "22px" : this.width);'/>快捷键大全
    </a>
    <a href="./index.php" class="" >http://mykeys.sinaapp.com/</a><br/>
    <span>关注微博(Ankiang)<img src="./css/logo-black.png" style='max-width:22px;_width:expression(this.width > 22 ? "22px" : this.width);'/></span><br/>
    <span>
      <img src="./css/logo.png" style='max-width:22px;_width:expression(this.width > 22 ? "22px" : this.width);'/>
      <a href="http://jq.qq.com/?_wv=1027&k=2COcMT9" target="_blank">加入快捷键交流QQ群(530154123)</a>
    </span>
  </div>
</div>


<div class="clearfix"></div>
<div id="hide-result"> </div>
<!-- .................................................... -->
</div><!-- end of container -->
</div><!-- end of wrapper -->
</body>
</html>
